-- GENERATED SPELL FOR [Bat Rider Guard] --


function spell0_15242(pUnit, Event) --@Unstable Concoction,n/a--
pUnit:FullCastSpellOnTarget(38066,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15242', 17000, 1)
end

function Sorts_15242(pUnit, Event)
local choix_sorts_15242 = math.random(0, 0)
if choix_sorts_15242 == 0 then
pUnit:RegisterEvent('spell0_15242', 1, 1)
end
end

function mob15242_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15242', math.random(1500, 3000), 1)
end

function mob15242_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15242_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15242_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15242, 1, 'mob15242_Action')
RegisterUnitEvent(15242, 2, 'mob15242_Leave')
RegisterUnitEvent(15242, 3, 'mob15242_Kill')
RegisterUnitEvent(15242, 4, 'mob15242_Die')
